Auto merge of #2225 - sgrif:sg-doctest-link-args, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 20 Dec 2015 06:22:11 +0000 (06:22 +0000)
committerbors <bors@rust-lang.org>
Sun, 20 Dec 2015 06:22:11 +0000 (06:22 +0000)
commite1c105ee8e611f3346885315b11cb14576e36336
tree183d04e472634dee703b048aa953239fbf2250b4
parentd2cc2b1e8e84f1ae5cbe4048e120229d6d6d89c5
parenta6f20637872d79336150bb62c6ccbc384f4d7ff0
Auto merge of #2225 - sgrif:sg-doctest-link-args, r=alexcrichton

It is entirely possible for a crate to have a build script that is simply
the equivalent to

```rustc
fn main() {
    println!("cargo:rustc-link-search=native=/some/path");
}
```

Without actually giving anything to link (for example, because the code
contains `#[link(name="foo")]`. In this case, we aren't actually passing
`-L` through when running doctests, even though they're passed when
compiling the main crate.

Fixes #1592